<section class="content-header">
  <!-- <h1>
        财务审核
    </h1> -->
  <ol class="breadcrumb">
    <li><a ui-sref="dashboard"><i class="fa fa-dashboard"></i>我的面板</a></li>
    <li><a class="active">财务审核</a></li>
  </ol>
</section>
<section class="content">
  <div class="box box-danger">
    <div class="box-header with-border">
      <h3 class="box-title">查询条件</h3>
      <div class="box-tools">
        <div class="box-tools pull-right">
          <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
          </button>
        </div>
      </div>
    </div>
    <div class="box-body">
      <div class="row">
        <div class="col-md-3">
          <div class="form-group">
            <label>客户名称</label>
            <select ui-select2 class="form-control select2" name="customer_id" data-formatfields="code,text" data-formatcaptions="编号,名称" ng-model="search.customer_id" url="Customer/DropDownSearch" paging="true" style="width: 100%;">
            </select>
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label>业务员(客服)</label>
            <select ui-select2 class="form-control select2" name="salesman_id" ng-model="search.salesman_id" url="Member/List" paging="true" style="width: 100%;"></select>
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label>订单类型</label>
            <select class="form-control select2" name="order_type" ng-model="search.order_type">
              <option value="">全部</option>
              <option value="reg_abroad">境外注册</option>
              <option value="reg_internal">境内注册</option>
              <option value="audit">审计</option>
              <option value="trademark">商标</option>
              <option value="patent">专利</option>
              <option value="annual_exam">年检</option>
              <option value="history">变更记录</option>
            </select>
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group">
            <label>状态</label>
            <select class="form-control select2" name="order_status" ng-model="search.order_status">
              <option value="">全部</option>
              <option value="0">未审核</option>
              <option value="1">已审核</option>
            </select>
          </div>
        </div>
      </div>
    </div>
    <div class="box-footer">
      <a class="btn btn-sm btn-info btn-flat pull-right" ng-click="query()">查询</a>
    </div>
  </div>
  <div class="box box-danger">
    <div class="box-body table-responsive no-padding">
      <table class="table table-hover">
        <tbody>
          <tr>
            <th style="width: 10px">#</th>
            <!-- <th>客户名称</th> -->
            <th>订单类型</th>
            <th>档案号</th>
            <th>名称</th>
            <th>成交金额</th>
            <th>业务员(客服)</th>
            <th>状态</th>
            <th class="opt-col">操作</th>
          </tr>
          <tr ng-repeat="item in data.items">
            <td ng-bind="($index+1)+'.'"></td>
            <!-- <td ng-bind="item.customer_name" ng-attr-title="{{item.customer_name}}"></td> -->
            <td ng-bind="item.order_type_name"></td>
            <td ng-bind="item.order_code"></td>
            <td ng-bind="item.order_name" ng-attr-title="{{item.order_name}}"></td>
            <td ng-bind="item.amount_transaction"></td>
            <td ng-bind="item.salesman"></td>
            <td ng-bind="getStatus(item)"></td>
            <td class="opt-col">
              <a href="javascript:;" ng-click="detail(item)" ng-bind="getOpt(item)" ng-if="opers.indexOf(3) > -1"> 马上审核</a>
              <span ng-if="opers.indexOf(3) == -1"> 无审核权限</span>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</section>
